/*
 * size.c
 *
 *  Created on: Jul 16, 2012
 *      Author: baris
 */

#include <stdio.h>
#include <stdlib.h>

// #define BUILD_EXISTS_RESTRICTION_ID(r,f) snprintf((char*) buffer,9,"%d_%d",r,f)
#define BUILD_EXISTS_RESTRICTION_ID(r,f) snprintf((char*) buffer,16,"%d%d",r,f)

int main(int argc, char *argv[]) {
	int i,j;
	// unsigned char buffer[16];
	unsigned char* buffer;

	buffer = (unsigned char*) malloc(16*sizeof(char));

	i = 0;
	j = 1;
	BUILD_EXISTS_RESTRICTION_ID(i,j);
	printf("buffer:%s:\n", buffer);
	printf("size of buffer: %lu\n", sizeof(buffer));

	printf("size of int: %lu\n", sizeof(int));
	printf("size of *int: %lu\n", sizeof(int*));
	return 0;
}

